package com.mkirl;

import java.util.ArrayList;

import com.google.android.maps.GeoPoint;
import com.google.android.maps.OverlayItem;

public class Game {

	String gameID;
	private GeoPoint geoPoint;
	OverlayItem overlay;
	long gameStartTime;
	ArrayList<Player> players;
	ArrayList<GameObject> gameObjs;
	
	public Game(String GID, GeoPoint p) {
		gameID = GID;
		geoPoint = p;
		overlay = new OverlayItem(getGeoPoint(), gameID, geoPoint.toString());
		players = new ArrayList<Player>();
		gameObjs = new ArrayList<GameObject>();
	}
	
	public String getGameID() {
		return gameID;
	}

	public void setGameID(String gameID) {
		this.gameID = gameID;
	}
	
	public double getLatitude() {
		return geoPoint.getLatitudeE6()/1000000;
	}
	
	public double getLongitude() {
		return geoPoint.getLongitudeE6()/1000000;
	}
	
	public OverlayItem getOverlay() {
		return overlay;
	}
	
	public void setOverlay(OverlayItem o) {
		overlay = o;
	}
	
	public GeoPoint getGeoPoint() {
		return geoPoint;
	}
	
	public void setGeoPoint(GeoPoint geoPoint) {
		this.geoPoint = geoPoint;
	}
	
	public long getGameTime() {
		return gameStartTime;
	}

	public void setGameTime(long gameTime) {
		this.gameStartTime = gameTime;
	}

	public ArrayList<Player> getPlayers() {
		return players;
	}

	public void setPlayers(ArrayList<Player> players) {
		this.players = players;
	}

	public ArrayList<GameObject> getGameObjs() {
		return gameObjs;
	}

	public void setGameObjs(ArrayList<GameObject> gameObjs) {
		this.gameObjs = gameObjs;
	}

}
